<div class="container main-container">
    <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12 all-brands">
            <?=Helper_Index::brand_letters($letters, null, false) ?>
            
            <?=Helper_Index::recommend_social_buttons(); ?>
        
            <h1>Популярные бренды</h1>
        
            <?php foreach ($letters as $item): ?>
            <?php if (isset($brands[$item['letter']])): ?>          
            <ul>
                <li><span class="h2"><?=$item['letter'] ?></span>
                    <ul>
                        <?php foreach ($brands[$item['letter']] as $brand): ?>
                        <li><a href="<?=Helper_Index::catalog_url(null, $brand) ?>"><?=$brand->name ?></a></li>
                        <?php endforeach; ?>
                    </ul>
                </li>
            </ul>  
            <?php endif; ?>    
            <?php endforeach; ?>
            <div class="clearfix"></div>
            
            <?=Helper_Index::recommend_social_buttons(); ?> 
            <?=Helper_Index::show_recommend_url(); ?>
        </div>
    </div>
</div> 
